<template>
  <div id="app">
    <router-view v-slot="{ Component }">
      <transition name="fade" mode="out-in">
        <component :is="Component" />
      </transition>
    </router-view>
  </div>
</template>
<script>
import { provide} from "vue"
import * as echarts from "echarts"
import axios from "axios"
// 设置基准路径
export default {
    setup(){
      provide("echarts",echarts)
      provide("axios",axios)
    }
}
</script>
<style >
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.5s;
}
.fade-enter, .fade-leave-to /* .fade-leave-active in <2.1.8 */ {
  opacity: 0;
}

*{
  margin: 0px;
  padding: 0px;
  box-sizing: 0px;

}
</style>
